package com.hc.service;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;


/**
 * @author hs
 * @date 2021/05/08
 */
@Service
public class ScheduledService {
    private static final Logger LOGGER = LogManager.getLogger(ScheduledService.class);

    // 秒 分 时 日 月 周几
    @Scheduled(cron = "0 26 11 * * ?")
    public void sch1(){
        LOGGER.info("定时任务执行了");
    }
}
